package com.zh.ssmshirofreemarker.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.zh.ssmshirofreemarker.Utils.ResponseUtil;
import com.zh.ssmshirofreemarker.entity.User;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZH
 * @since 2018-07-24
 */
public interface IUserService extends IService<User> {

    public Page<User> selectUserPage(Page<User> page, User user);

    public ResponseUtil addUser(User user);

    public boolean deleteUserById(User user);

    public boolean deleteUsersByIds(String ids);

    public boolean openUsersByIds(String ids);

    public List<Map<String,Object>> getAllRoleAndSignHasRole(Long id);

    public boolean checkUserName(User user);

}
